package com.pds.web.test.controller;

import com.pds.common.core.controller.BaseController;
import com.pds.common.core.domain.R;
import com.pds.web.test.domain.PdsTest;
import com.pds.web.test.service.IPdsTestService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 代码生成测试Controller
 * 
 * @author pds
 * @date 2024-01-26
 */
@Api("代码生成测试")
@RestController
@RequestMapping("/test")
public class PdsTestController extends BaseController
{
    @Autowired
    private IPdsTestService pdsTestService;

    /**
     * 获取代码生成测试详细信息
     */
    @ApiOperation("根据ID查询记录")
    @GetMapping(value = "/query/{id}")
    public R<PdsTest> getInfo(@PathVariable("id") Long id)
    {
        return R.ok(pdsTestService.selectPdsTestById(id));
    }
}
